package com.token.iot.bratterycharging.gateway;

import com.outstanding.framework.core.ReturnCode;

public enum ResCode implements ReturnCode {
	IMEIISNULL("I0001","获取IMEI值为空!"),
	OPERNOTFIND("I0002","未定义的上行指令操作码"),
	SeaphoreError("I0003","回调交易无法找到对应的信号量"), 
	SENDERNOTFIND("I0004","未定义的下行指令操作码"), 
	ContextISNULL("I0005","未找到指定设备的连接"),
	DupleNOTFIND("I0006","未定义的操作码"), 
	CommandNULL("I0007","指令不能为空"), 
	PORTOUTOFBOUDS("I0008","端口号越界"),
	POWERERROR("I0009","5档功率设置规则错误"),
	ONOrderPayed("I0010","响应线上订单开始充电错误"),
	ONDeviceOff("I0011","响应充电设备下线错误"),
	ONDeviceRegist("I0012","响应充电设备下线错误"),
	CALLERROR("I0013","系统错误"),
	JOBERROR("I0014","任务错误"),
	semaphoreTimeOut("I0015","设备响应超时"),
	;

	private String code;
	private String msg;

	private ResCode(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public String getCode() {
		return this.code;
	}

	@Override
	public String getMessage() {
		return this.msg;
	}

}